<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ include file="../init_include.jsp" %>
<%
	Sysop sysop=(Sysop)session.getAttribute("sysop");
	int check_rst=Permission.accept(dbi,session,request,"sysop","tree","catid","000001000"); 	
	if (check_rst!=Permission.CHECK_RST_SUCCESS) {
		dbi.closeAll();
		if (check_rst==Permission.CHECK_RST_DENY)
			response.sendRedirect("../deny.html");
		else
			response.sendRedirect("../index.jsp");
		return;		
	}
	
	int id=-1;
	if(request.getParameter("id")!=null) {
		String tempid=request.getParameter("id");
		if(tempid.length()>0)
			id=Integer.parseInt(request.getParameter("id"));
		else {
			if(request.getParameter("self")!=null) {
				if(request.getParameter("self").equals("true"))
					id=sysop.getId();
			}
		}		
		if(id>=0) {
			if(request.getParameter("idtext")!=null) {
				String iditem=request.getParameter("idtext").trim();
				Sysop.moveSysop(dbi,id,iditem);
			}
		}
		out.print(Language.getNameByCode("sys.sysop.move_success","Move user successful!"));
	}
%>		
<script Language="JavaScript" src="../script/Ion_Show.js"></script> 
<script language="javascript">
	closewindow(0);
</script>	
<%@ include file="../init_free.jsp" %>